﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using BUS;
using DAL;
using DTO;

namespace WEBSITE_BANDEAL.Admin
{
    public partial class khachhang_delete : System.Web.UI.Page
    {
        KHACH_HANGBUS dhb = new KHACH_HANGBUS();
        protected void Page_Load(object sender, EventArgs e)
        {
            int ma = int.Parse(Request.QueryString["id"]);
            int check = int.Parse(Request.QueryString["check"]);
            if (check == 1)
            {
                // int t = TINH_TPBUS.CheckExist(ma);
                Response.Write(0);
            }
            else
            {
                dhb.KhachHang_Xoa(ma);
                Response.Write(1);
            }
        }
    }
}